package lesson18;

public class AbstractionDemo {
	public static void main(String[] args) {
		Human human = new Human();
		
		Mammal cat = new Cat();
		Zoo myZoo = new Zoo();
		myZoo.mammals[0] = human;
		myZoo.mammals[1] = cat;
		System.out.println(myZoo.mammals[1] instanceof Mammal);
		myZoo.makeAllAnimalsNoisy();
		myZoo.makeAllToStill();
		myZoo.makeAllToBorn();
		System.out.println(human.age);
	}
	
	
}
